import request from '@/utils/request'

// 查询班级信息列表
export function listClass(query:any) {
  return request({
    url: '/system/classMembers/list',
    method: 'get',
    params: query
  })
}

// 查询班级信息详细
export function getClass(id:any) {
  return request({
    url: '/system/classMembers/' + id,
    method: 'get'
  })
}

// 新增班级信息
export function addClass(data:any) {
  return request({
    url: '/system/classMembers',
    method: 'post',
    data: data
  })
}

// 修改班级信息
export function updateClass(data:any) {
  return request({
    url: '/system/classMembers',
    method: 'put',
    data: data
  })
}

// 删除班级信息
export function delClass(id:any) {
  return request({
    url: '/system/classMembers/' + id,
    method: 'delete'
  })
}

//excel文件导出
export function exportClass(data: any) {
  return request({
    url: '/system/classMembers/export',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}

